using MethodChaining.MFComputer.Builders;
using MethodChaining.MFComputer.Model;

using NUnit.Framework;







[TestFixture]
public class UsingDone_TheComputer
{
	private readonly Computer TheComputer = new ComputerBuilder()
		.WithDisk
		.Done
		.WithDisk
		.Done
		.IsQuadCore
		.Done
	                          ;





	[Test]
	public void ShouldHave_2Disks()
	{
		Assert.AreEqual( 2, TheComputer.Disks.Count );
	}





	[Test]
	public void ShouldHave_4Cores()
	{
		Assert.AreEqual( 4, TheComputer.NumberOfCores );
	}
}